<?php require_once($_SERVER['DOCUMENT_ROOT'].'/user.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
	<?php
	if(isset($title) && $title != ''){
		echo $title;
	}else{
		echo 'Fitness';
	}

	error_reporting(0);
	?>
</title>
<META name="description"
	content= "<?php
	if(isset($description) && $description != ''){
		echo $description;
	}else{
		echo 'Fitness information: training programs, diets ,nutrition, supplements, exercises, forum, chat, photos ';
	}
	?>" >
<META name="keywords"
	content= "<?php
	if(isset($description) && $description != ''){
		echo $description;
	}else{
		echo 'fitness, muscles, training programs, diets ,nutrition, supplements, exercises,  fitness forum, fitness chat, photos ';
	}
	?>" >
<link href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/styles/style.css" media="screen" rel="Stylesheet" type="text/css">
<!--[if IE 6]>
			<style type="text/css">
				.sub-header-trans{background:transparent;
				height:1%;
				padding: 5px;
				width: 800px;
				filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/bg_sub_heading.png', sizingMethod='scale');
				}
			</style>
<![endif]-->
</head>
<body>

<div id="banner" align="center">

	<div id="banner1">
		<!-- EasyBanner Pro code begin -->
		<center>
		<script language="JavaScript">
		document.write('<s'+'cript language="JavaScript" src="http://www.ibannerexchange.com/work.php?n=1047&size=1&j=1&c=2-3-6-9-11-10&code='+new Date().getTime()+'"></s'+'cript>');
		</script>
		<NOSCRIPT>
		<IFRAME SRC="http://www.ibannerexchange.com/work.php?n=1047&size=1&c=2-3-6-9-11-10" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
		</NOSCRIPT>
		</center>
		<!-- EasyBanner Pro code end -->
	</div>

	<div id="banner2">
		<!-- eBannerTRAFFIC Pro code begin -->
		<center>
		<script language="JavaScript">
		document.write('<s'+'cript language="JavaScript" src="http://www.ebannertraffic.com/work.php?n=4831&size=4&j=1&c=1-2-6-11-8-10&code='+new Date().getTime()+'"></s'+'cript>');
		</script>
		<NOSCRIPT>
		<IFRAME SRC="http://www.ebannertraffic.com/work.php?n=4831&size=4&c=1-2-6-11-8-10" width=728 height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
		</NOSCRIPT>
		</center>
		<!-- eBannerTRAFFIC Pro code end -->
	</div>

	<div id="banner3">
		<!-- BEGIN BANNERS 4 ALL - BANNER EXCHANGE CODE -->
		<center>
		<A HREF="http://banners4all.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=01"><IMG SRC="http://banners4all.com/cgi-bin/bpwork2.cgi?ID=Mitchy&page=01" BORDER=0 width=468 height=60></a>
		<br><font size=2><A HREF="http://banners4all.com">Banners 4 All - Banner Exchange</a>
		</center></font>
		<!-- END BANNERS 4 ALL - BANNER EXCHANGE CODE -->
	</div>

	<div id="banner4">
		<script type="text/javascript"><!--
		google_ad_client = "pub-8921659545455310";
		/* 728x90, created 7/24/08 */
		google_ad_slot = "3646452034";
		google_ad_width = 728;
		google_ad_height = 90;
		//-->
		</script>
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
	</div>

</div>

<div  id="googleadd1">
			<script type="text/javascript"><!--
			google_ad_client = "pub-8921659545455310";
			/* 200x200, created 7/16/08 */
			google_ad_slot = "3607724700";
			google_ad_width = 200;
			google_ad_height = 200;
			//-->
			</script>
			<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
			</script>
</div>

<!-- start wrapper -->
<div id="wrapper">

  <!-- start header -->
  <div id="header">



	 <ul>
       <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/index.php">Home</a></li>
	   <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/articles/articles.php">Articles</a></li>
	   <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/forum/forum.php">Forums</a></li>
	   <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/chat/index.php">Chat</a></li>
	   <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/news/index.php">News</a></li>
	   <li><a href="<?php $_SERVER['DOCUMENT_ROOT'] ?>/photos">Photos</a></li>
        <?php
		session_start();
		if (@$_SESSION['auth'] == "yes")
		{
			if(isset($_SESSION['user'])){
				$user = $_SESSION['user'];
				printf("&nbsp;&nbsp;Welcome, %s", $user->user_name);
			}
			printf("(<li><a href='/login/logout.php' id='submit-photo'>Log out</a></li>, ");
			printf("<li><a href='/user/edit_personal_data.php' id='submit-photo'>Edit</a></li>)");

			if(checkIfAdmin()){
				printf("<li><a href='/admin/index.php'>Manage</a></li>");
			}
		}else{
			printf("<li><a href='/login/Login-00.php' id='submit-photo'>Log in/Register</a></li>");
		}
		?>
	 </ul>


	 <div id="text">
	 <!--
	    <span>Welcome to the site for <span class="about"><strong>fitness</strong>maniacs</span>

	    <br/>
	     <span class="archive">This Week's Theme:</span> <span class="theme">Cardio Training</span></span>
     -->
     </div>
  </div>
  <!-- end header -->

  <style type="text/css">
  </style>

 <!-- start main -->
 <div id="main">